#pragma once

#include <string>
#include <iostream>
#include <fstream>

class IOUnit
{

public:
	IOUnit()
	{

	};
	~IOUnit(){};

	void writeToFile(char* filename, char* data, int size);
	void readFromFile(char* filename);

private:
	int byteCount;
	char filename[127];

	std::ofstream pOFile;
	std::ifstream pIFile;

	char inputString[100];

	/** Streambuffer for output operations*/
	std::streambuf* pObuf;

	

};

